<!--公共开始-->
<include file="./public" />
<!--公共结束-->
<title>7min理财</title>
<script type="text/javascript">
$(function() {
    $(window).scroll(function() {
        fixTop("#hotNews");
	});
	//固定热门推荐
	var top=$("#hotNews").offset().top;
	function fixTop(elem){
		var width=$(elem).width();
		if($(document).scrollTop()>top){
			
			$(elem).css({"position":"fixed","top":"0","width":width});
		}else{
			$(elem).css({"position":"","top":"","width":width});
		}
	}
	});

</script>

</head>

<body>
<!--头部+顶部开始-->
<include file="./top" />
<!--头部+顶部结束-->
<script type="text/javascript">
    $(document).ready(function() 
    {
        $(".btn-commend").click(function() 
        {
         //alert({$news['id']});
         ajaxPraiseAdd({$news['id']});
         
        });
    });
    
    
    function ajaxPraiseAdd(id)
    {
        $(function()
        {
           $.ajax({  
                    type: "post",  
                    url: "__URL__/ajaxPraiseAdd",  
                    dataType: 'json',
                    data: {id:id},
                    beforeSend: function(XMLHttpRequest){  
                    },  
                    error:function(){
                        alert('error');
                    },
                    success: function(json)
                    {
                        //alert('success!');
                        if(json.status == 1){
                            //alert(json.data);
                            $(".btn-count").text(json.data);
                            //window.location.href='testResult/'+json.data['type'] +'/' +json.data['score'] ;
                        } else
                        {
                            alert('wrong!');
                        }
                    }
                   
                   
                })
        });
    }
</script>

<!--主体开始-->
<div class="main-content">
    <div class="left70 left">
		<!--文章内容开始-->
        <div class="newsCont">
        	<h1>{$news['title']}</h1>
            <div class="ep-info">
                <span class="publishTime">{$news['publishtime']}</span>&#12288;来源：{$news['comefrom']}
                <div class="intera right">
                  <a title="推荐" class="btn-commend">
                    <i class="fa fa-thumbs-o-up"></i>
                    <span class="btn-count">{$news['praisecount']}</span>
                  </a>
                </div>
            </div>
            <div class="bdsharebuttonbox">
            	<a href="#" class="bds_more" data-cmd="more"></a><a title="分享到微信" href="#" class="bds_weixin" data-cmd="weixin"></a><a title="分享到新浪微博" href="#" class="bds_tsina" data-cmd="tsina"></a><a title="分享到QQ空间" href="#" class="bds_qzone" data-cmd="qzone"></a><a title="分享到腾讯微博" href="#" class="bds_tqq" data-cmd="tqq"></a><a title="分享到人人网" href="#" class="bds_renren" data-cmd="renren"></a>
            </div>
			<script type="text/javascript">
            window._bd_share_config={"common":{"bdSnsKey":{},"bdText":"","bdMini":"2","bdMiniList":false,"bdPic":"","bdStyle":"1","bdSize":"16"},"share":{},"image":{"viewList":["weixin","tsina","qzone","tqq","renren"],"viewText":"分享到：","viewSize":"16"},"selectShare":{"bdContainerClass":null,"bdSelectMiniList":["weixin","tsina","qzone","tqq","renren"]}};with(document)0[(getElementsByTagName('head')[0]||body).appendChild(createElement('script')).src='http://bdimg.share.baidu.com/static/api/js/share.js?v=89860593.js?cdnversion='+~(-new Date()/36e5)];
            </script>
            
            <!--文章开始-->

            <div id='divNewscontent' class="newsText">
                 <?php 
                 $html = html_entity_decode($news['content'], ENT_QUOTES, 'UTF-8');
                 echo($html);
                 ?>
            </div>
            <!--文章结束-->
            
            <div class="ep-source align-right">
            	<i class="fa fa-info-circle text-danger"></i><span>本文来源：{$news['comefrom']}</span>
            </div>
        </div>
		<!--文章内容结束-->
    </div>
    <div class="right30 right">
        <!--行情中心-->
        <div class="panel">
            <div class="panel-body side-item">
                <h1><span>行情中心</span></h1>
                <div class="side-item-body hqzx">
                    <div class="hqzx_item">
                        <h2>股市</h2>
                        <div class="hqzx_table">
                            <table>
                              <tr>
                                <td width="180">沪深上证</td>
                                <td class="align-right"><span class="text-danger">{$dapanPrice['szzz']}</span></td>
                                <td class="align-right" width="90"><span class="text-danger">{$dapanRate['szzz']}</span></td>
                                <td class="align-right" width="30"><span class="text-danger"><i class="fa fa-long-arrow-up"></i></span></td>
                              </tr>
                              <tr>
                                <td>港股恒生</td>
                                <td class="align-right"><span class="text-success"> - </span></td>
                                <td class="align-right"><span class="text-success"> - </span></td>
                                <td class="align-right"><span class="text-success"> - </span></td>
                              </tr>
                              <tr>
                                <td>美股道琼斯</td>
                                <td class="align-right"><span class="text-success"> - </span></td>
                                <td class="align-right"><span class="text-success"> - </span></td>
                                <td class="align-right"><span class="text-success"> - </span></td>
                              </tr>
                            </table>
                        </div>
                    </div>
                    <div class="hqzx_item">
                        <h2>外汇</h2>
                        <div class="hqzx_table">
                            <table>
                              <tr>
                                <td width="180">美元/人民币</td>
                                <td class="align-right"><span class="text-danger">{$dapanPrice['USD']}</span></td>
                                <td class="align-right" width="90"><span class="text-danger">{$dapanRate['USD']}</span></td>
                                <td class="align-right" width="30"><span class="text-danger"><i class="fa fa-long-arrow-up"></i></span></td>
                              </tr>
                              <tr>
                                <td>欧元/美元</td>
                                <td class="align-right"><span class="text-success"></span></td>
                                <td class="align-right"><span class="text-success"></span></td>
                                <td class="align-right"><span class="text-success"><i class="fa fa-long-arrow-down"></i></span></td>
                              </tr>
                              <tr>
                                <td>港币/人民币</td>
                                <td class="align-right"><span class="text-success"></span></td>
                                <td class="align-right"><span class="text-success"></span></td>
                                <td class="align-right"><span class="text-success"><i class="fa fa-long-arrow-down"></i></span></td>
                              </tr>
                            </table>
                        </div>
                    </div>
                    <!--<div class="hqzx_item">
                        <h2>商品</h2>
                        <div class="hqzx_table">
                            <table>
                              <tr>
                                <td width="180">COMEX黄金</td>
                                <td class="align-right"><span class="text-danger">3349.32</span></td>
                                <td class="align-right" width="90"><span class="text-danger">+1.78%</span></td>
                                <td class="align-right" width="30"><span class="text-danger"><i class="fa fa-long-arrow-up"></i></span></td>
                              </tr>
                              <tr>
                                <td>布伦特原油</td>
                                <td class="align-right"><span class="text-success">23797.96</span></td>
                                <td class="align-right"><span class="text-success">-0.34%</span></td>
                                <td class="align-right"><span class="text-success"><i class="fa fa-long-arrow-down"></i></span></td>
                              </tr>
                              <tr>
                                <td>铜</td>
                                <td class="align-right"><span class="text-success">17895.22</span></td>
                                <td class="align-right"><span class="text-success">-1.47%</span></td>
                                <td class="align-right"><span class="text-success"><i class="fa fa-long-arrow-down"></i></span></td>
                              </tr>
                            </table>
                        </div>
                    </div>-->
                </div>
            </div>
        </div>
        <!--热门推荐-->
        <div class="panel" id="hotNews">
        	<include file="inchotnews" />
        </div>
    </div>
    <div class="clear"></div>
</div>
<!--主体结束-->
<!--底部开始-->
<include file="./foot" />
<!--底部结束-->
</body>
</html>
